package hellotabwidget.pack;

import android.app.Activity;
import android.widget.TextView;
import android.os.Bundle;

public class BudgetActivity extends Activity {

	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.budget_layout);
	    
	        EconomyDb info = new EconomyDb(this);
	        info.open();
	        int a = info.addSumCloths();  
	        MyView.setA(a);
	        info.close(); 
	        //tv.setText(a);
	        
	    }
	    
	    @Override
	    public void onResume() {
	        super.onResume();
	       // TextView tv = (TextView) findViewById(R.id.budgettext);
	        
	        EconomyDb info = new EconomyDb(this);
	        info.open();
	        int a = info.addSumCloths();  
	        MyView.setA(a);
	        info.close(); 
	    }
	}

